# -*- coding:utf-8 -*-
# @Author: shenyuyu
# @Time: 2023/6/12 11:23
# @File: qu_6.py

# 使用循环计算1+2+3+4+…+100的结果。

sum = 0
a = 0
while a <= 100:
    sum = sum + a
    a += 1
print(sum)
